package com.ruoyi.system.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CarLeaveLogMapper;
import com.ruoyi.system.domain.CarLeaveLog;
import com.ruoyi.system.service.ICarLeaveLogService;

/**
 * 车辆出场记录Service业务层处理
 * 
 * @author sunkai
 * @date 2022-10-30
 */
@Service
public class CarLeaveLogServiceImpl implements ICarLeaveLogService 
{
    @Autowired
    private CarLeaveLogMapper carLeaveLogMapper;

    /**
     * 查询车辆出场记录
     * 
     * @param id 车辆出场记录主键
     * @return 车辆出场记录
     */
    @Override
    public CarLeaveLog selectCarLeaveLogById(String id)
    {
        return carLeaveLogMapper.selectCarLeaveLogById(id);
    }

    /**
     * 查询车辆出场记录列表
     * 
     * @param carLeaveLog 车辆出场记录
     * @return 车辆出场记录
     */
    @Override
    public List<CarLeaveLog> selectCarLeaveLogList(CarLeaveLog carLeaveLog)
    {
        return carLeaveLogMapper.selectCarLeaveLogList(carLeaveLog);
    }

    /**
     * 新增车辆出场记录
     * 
     * @param carLeaveLog 车辆出场记录
     * @return 结果
     */
    @Override
    public int insertCarLeaveLog(CarLeaveLog carLeaveLog)
    {
        return carLeaveLogMapper.insertCarLeaveLog(carLeaveLog);
    }

    /**
     * 修改车辆出场记录
     * 
     * @param carLeaveLog 车辆出场记录
     * @return 结果
     */
    @Override
    public int updateCarLeaveLog(CarLeaveLog carLeaveLog)
    {
        return carLeaveLogMapper.updateCarLeaveLog(carLeaveLog);
    }

    /**
     * 批量删除车辆出场记录
     * 
     * @param ids 需要删除的车辆出场记录主键
     * @return 结果
     */
    @Override
    public int deleteCarLeaveLogByIds(String[] ids)
    {
        return carLeaveLogMapper.deleteCarLeaveLogByIds(ids);
    }

    /**
     * 删除车辆出场记录信息
     * 
     * @param id 车辆出场记录主键
     * @return 结果
     */
    @Override
    public int deleteCarLeaveLogById(String id)
    {
        return carLeaveLogMapper.deleteCarLeaveLogById(id);
    }

    @Override
    public List<Map<String, Object>> selectCarLeaveLogListMap(CarLeaveLog carLeaveLog) {
        return carLeaveLogMapper.selectCarLeaveLogListMap(carLeaveLog);
    }
}
